package handlers.usercommandhandlers;

import com.l2jserver.gameserver.handler.IUserCommandHandler;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;

/**
 * Support for /AreSInfo command
 * Added by Matim
 */
public class ServerInfo implements IUserCommandHandler
{
	private static final int[] COMMAND_IDS =
	{
		121
	};
	
	/**
	 * 
	 * @see net.sf.l2j.gameserver.handler.IUserCommandHandler#useUserCommand(int, net.sf.l2j.gameserver.model.actor.instance.L2PcInstance)
	 */
	public boolean useUserCommand(int id, L2PcInstance activeChar)
	{
		if (id != COMMAND_IDS[0])
			return false;
                NpcHtmlMessage npcHtmlMessage = new NpcHtmlMessage(0); 
                npcHtmlMessage.setHtml("<html><head><title>AreS Info</title></head><body>AreS Community GameS. Look in your inventory, there should be your reward.</body></html>"); 
                activeChar.sendPacket(npcHtmlMessage); 
	                return true;
        }
	
	/**
	 * 
	 * @see net.sf.l2j.gameserver.handler.IUserCommandHandler#getUserCommandList()
	 */
	public int[] getUserCommandList()
	{
		return COMMAND_IDS;
	}
}